To configure.

Set up your proxy to host the website so it is avialble on the internet.

Install Couch DB on docker with the following docker-compose file.

services:
  couchdb-obsidian-livesync:
    restart: always
    container_name: couchdb-obsidian-livesync
    image: 'docker.io/oleduc/docker-obsidian-livesync-couchdb:master'
    ports:
      - '5984:5984'
    environment:
      - COUCHDB_DATABASE=obsidian
      - COUCHDB_PASSWORD=tw9222dvO91ZHb
      - COUCHDB_USER=miker
      - SERVER_DOMAIN=https://obsidian.mikemcfetridge.com
    volumes:
      - ./data:/opt/couchdb/data

once it starts, validate that it is install and runnning by going to the following link
    https://obsidian.mikemcfetridge.com/_utils


Once you verified that the DB is up and running, you will need to log into the container:
    Docker exec -it {Container name} /bin/bash


Run the following command

    export hostname=https://obsidian.mikemcfetridge.com #Point to your vault
    export database=obsidian #Please change as you like
    export passphrase=7ixpCPi5OEDF6J #Please change as you like
    export username=miker
    export password=tw9222dvO91ZHb
    deno run -A https://raw.githubusercontent.com/vrtmrz/obsidian-livesync/main/utils/flyio/generate_setupuri.ts

This should provide you with an output like below:

    Your passphrase of Setup-URI is:  little-shadow            #This passphrase is never shown again, so please note it in a safe place.
    obsidian://setuplivesync?settings=%25dcc45454e4eda1f3feb43f050100000041732c3c957c9bac41a96df3040ab6b5uEIf1EWiXa%2BgGabAhHBCF9wkHfvj%2BwSfHlZOctmyUYdDfqwkIfbibE4yge9uNaARqtixj4OZH9XZs3S4cjRclUNvpZiqsq46SOniGB9X2Svk58HFcwfNaW67mNQLQn2cSWRwvN9SudeqVWiLjWKczz6DWBcYGwwsyO%2BLxnw86txKZBC6yE2AaY%2B2dz%2F0qWQBZaxh%2FCJWjxPyRGewUhfUbZnuLQmtu0RY%2FfYgVQQZ%2FNvzmmUpSrpFeJq%2BYP%2F3V1w9PmVNSiDo62a9rnWjjBpk0ffQGxuNEb36Tu9i%2BrRKROnz4T3nsOX6IWZJd4WhuljboUsz9dKHwcNSsDFyNDFx3XMPcjaFO1%2BcMulxP8zJh%2BS3p%2BNrvg5kdsM0%2BGsg%2F29mMUnbFXXETdIAX62Jb%2FhuuRaOy0Cwjccpg02tpXc6HGj7tZCXh1fh4EPNUK09QmkzDOtIcb33yva%2FMNCzY9cVr0TCLr2MVLlnRR9P1sQkGCDTqI0NJvG1B0FvGE3XASBQpCKQH1XnED0z5IFsTH4m8gjHbR2XtDaTbFqNA%2BL9cGjztPXKa0g8xD0mruF5uH1zCp0sELD%2Fghw%2FsXUYcCPt7gmVryU9ioFzjRVt7UTexFpr50ZPOfOfVwfy3FCHk4lCNDREeHdstj2EI19lyBL4NyVuIt5%2FqE%2FaOib04ZefjsTETB%2F7rdbblwebgD1Il%2FWPjtL3uKyxiM11W6pUQtXiT7CvoXfu3rf9K5%2FihFjiomY08xYb60Q1LyIjhG1SIB%2BsvS7Vc9qzyGFW1JdQUEWz3IFpX7QVuk1ZX2uovJiAqwD4eTp0xIUXPNLmeTbQ0rFeKd8yYR6DpMLejkWedW9x%2FxL0q62yvlXsOuAKhQLOgPRQ3A%3D%3D

You will need to enter this information on your desktop client and other client to link to the database for live updates.

    Install Self-hosted LiveSync
    Choose Use the copied setup URI from the command palette and paste the setup URI. (obsidian://setuplivesync?settings=.....).
    Type the previously displayed passphrase (patient-haze) for setup-uri passphrase.
    Answer yes and Set it up..., and finish the first dialogue with Keep them disabled.
    Reload app without save once.
